# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=bupstash
pkgver=0.11.0
pkgrel=0
pkgdesc="Easy and efficient encrypted backups"
url="https://bupstash.io/"
arch="x86_64 armv7 armhf aarch64 x86 ppc64le" # limited by rust/cargo
arch="$arch !armv7 !armhf !x86" # Test failures
license="MIT"
makedepends="rust cargo libsodium-dev"
options="net"
source="$pkgname-$pkgver.tar.gz::https://github.com/andrewchambers/bupstash/archive/v$pkgver.tar.gz"
export CARGO_HOME="$srcdir"/cargo
export RUSTFLAGS="-C target-feature=-crt-static"

build() {
	cargo build --release --verbose
}

check() {
	cargo test --all --release --verbose
}

package() {
	install -Dm755 target/release/bupstash "$pkgdir"/usr/bin/bupstash
}

sha512sums="
8e94aee7fba70b2efaf1947c8ed0da583a71de7ce9f28adf36437c297f496329d263cdb91cc50ed5e4e3eb4ac9571f09f9d9de0d75e6cc30510e693378442af4  bupstash-0.11.0.tar.gz
"
